const request = require('./network/request');
const login = require('./openApi/login/login');
const userInfo = require('./openApi/userInfo/userInfo');
const systemInfo = require('./device/systemInfo');
const RecorderManager = require('./media/record.js');
const backgroundAudio = require('./media/audio2.js');

// 接口名称需和小程序接口名称一致
// 如存在接口与对应小程序接口不一致，请添加或修改
// 如对应小程序接口参数中包含success和fail的，请使用Promise进行封装
 
module.exports = {
  request: request.request,
  uploadFile:request.upload,
  downloadFile:request.download,
  login: login.login,
  checkSession: login.checkSession,
  getSystemInfo: systemInfo.getSystemInfo,
  getSystemInfoSync: systemInfo.getSystemInfoSync,
  canIUse: systemInfo.canIUse,
  getUserInfo:userInfo.getUserInfo,
  recorderManager: RecorderManager,
  backgroundAudio
}